package com.object.oriented.exam.system1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author : Apple
 * @description :
 * @date : 2023-06-14 09:08
 **/

@Data
@TableName("t_problem")
public class Problem implements Serializable {

    // 唯一索引
    @TableId(type = IdType.AUTO)
    private Long id;

    // 创建用户id
    private Long createUserId;

    // 知识点id
    private Long knowledgeId;

    // 题目类型
    // 1=Choice;2=Blank;3=Picture
    private Integer type;

    // 题目
    private String title;

    // 题目顺序
    @TableField(value = "`index`")
    private Integer index;

    //默认分值
    private Integer defaultScore;

    // 难度
    private Integer difficulty;

    // 题目选项或图片
    @TableField(exist = false)
    private List<?> expend;

}
